<?php

use Biz\service\trade\Cart as sCart;

/**
 * @deprecated
 */
class TotalSumAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_VISITOR;

    public function main()
    {
        $data = sCart::totalSum(($this->uid > 0) ? $this->uid : $this->vid, $this->appType);

        $this->setSuccess($data);
    }
}